home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
jazclib1.arc
/
JZDOSFLG.C
< prev
next >
Wrap
Text File
|
1986-04-30
|
697b
|
26 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│ jzdosflg.c │
│ Return the vector of the dos flag. The vector is the equivalent of a │
│ char far pointer. If the byte there is 0, it's safe to call dos from an │
│ interrupt handler. │
│ │
│ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
└────────────────────────────────────────────────────────────────────────────┘
*/
#include <jaz.h>
jzdosflg(fvector)
TVECTOR *fvector;
{
TREG wreg;
wreg.h.ah = 0x34; /* get address of dos flag */
msdos(&wreg);
fvector->segment = wreg.x.es;
fvector->offset = wreg.x.bx;
}